FROM java:8
COPY *.jar /app.jar
CMD ["--server.port=1315"]
EXPOSE 1315

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone

ENTRYPOINT ["java","-jar","/app.jar"]




FROM java:8
EXPOSE 8080
COPY *.jar /app.jar

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
ENTRYPOINT ["java","-jar","/app.jar","--spring.profiles.active=test"]
